using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class EffectSlider : MonoBehaviour
{
    private Slider slider;

    private void OnEnable()
    {
        slider = GetComponent<Slider>();
        slider.value = AudioManager.Instance.GetEffectVolume();
        slider.onValueChanged.AddListener(AudioManager.Instance.ChangeEffectVolume);
    }
}
